package com.example.innovate.service;


import com.example.innovate.domain.AchievementCompetitionDO;

import java.util.List;

public interface AchieveCompetitionService {

    //添加信息
    AchievementCompetitionDO addCompetition(AchievementCompetitionDO achievementCompetitionDO);

    //删除信息
    void deleteCompetition(int id);

    //修改信息
    AchievementCompetitionDO updateCompetiton(AchievementCompetitionDO achievementCompetitionDO);

    //根据id查找信息
    AchievementCompetitionDO findCompetitionById(int id);

    //根据备注查找信息
    AchievementCompetitionDO findCompetitionByRemark(String remark);


    //根据用户id查找
    List<AchievementCompetitionDO> findByUserId(int id, int pageNumber, int pageSize);

    //查询所有信息
    List<AchievementCompetitionDO> findAll(int pageNumber, int pageSize);

    //主页面查询所有
    List<AchievementCompetitionDO> findAllNotPage();

    //根据班级查询所有信息
    List<AchievementCompetitionDO> findAllByClassName(String className, int pageNumber, int pageSize);

    //查看审核中信息
    List<AchievementCompetitionDO> findAllExamine(int pageNumber, int pageSize);

    //根据班级查看审核中信息
    List<AchievementCompetitionDO> findAllExamineByClass(String className, int pageNumber, int pageSize);

    //根据用户id查看审核中信息
    List<AchievementCompetitionDO> findAllExamineByUserId(int userId, int pageNumber, int pageSize);

}
